import axios from '@/libs/api.request'

// 年审基数上传时间节点
export class YearReviewTimeApi {
  // 根据条件获取年审基数上传时间节点
  static getList (params) {
    return axios.request({
      url: '/YearReviewTime/GetList',
      method: 'post',
      enctype: 'multipart/form-data',
      data: params
    })
  }

  // 删除年审基数上传时间节点
  static delete (params) {
    return axios.request({
      url: '/YearReviewTime/Delete',
      method: 'post',
      enctype: 'multipart/form-data',
      data: params
    })
  }

  // 导入
  static import (params) {
    return axios.request({
      url: '/YearReviewTime/Import',
      method: 'post',
      enctype: 'multipart/form-data',
      data: params
    })
  }

  // 导出模板
  static exportTemplate (params) {
    return axios.request({
      url: '/YearReviewTime/ExportTemplate',
      method: 'get',
      enctype: 'multipart/form-data',
      params: params
    })
  }

  // 导出错误数据附件
  static exportErrorFile (params) {
    return axios.request({
      url: '/YearReviewTime/ExportErrorFile',
      method: 'get',
      enctype: 'multipart/form-data',
      params: params
    })
  }
}
